package com.lingnan.eduservice.service;

import com.lingnan.eduservice.entity.po.EduChapterPO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lingnan.eduservice.entity.vo.ChapterVO;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author zzd
 * @since 2021-08-17
 */
public interface EduChapterService extends IService<EduChapterPO> {
    /**
     * 查询当前课程章节和小结(树型)
     * @param courseId 课程号
     * @return
     */
    List<ChapterVO> findChapterVideoByCourseId(String courseId);

    /**
     * 根据章节ID删除章节信息
     * @param chapterId
     */
    boolean deleteChapterById(String chapterId);

    /**
     * 根据课程ID删除小节信息
     * @param courseId
     */
    void deleteChapterByCourseId(String courseId);
}
